package com.example.administrator.ac;

import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.support.annotation.Nullable;
import android.view.View;
import android.widget.Button;
import android.widget.TextView;

/**
 * Created by Administrator on 2017/6/27.
 */

public class OrderActivity extends Activity implements View.OnClickListener{
    private TextView orderid;
    private TextView username;
    private TextView careworkername;
    private TextView place;
    private TextView wage;
    private TextView time;
    private TextView textdescribe;
    private Button finish;
    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_order);

        init();//初始化组件

        Intent intent=getIntent();
        orderid.setText(intent.getStringExtra("orderid"));
        username.setText(intent.getStringExtra("orderid"));
        careworkername.setText(intent.getStringExtra("orderid"));
        place.setText(intent.getStringExtra("orderid"));
        wage.setText(intent.getStringExtra("orderid"));
        textdescribe.setText("gggg;ljmigerchguhggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggtuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuoeeeeee");
//        if(){
//            finish.setVisibility(View.GONE);
//        }
    }

    private void init() {
        orderid=(TextView)findViewById(R.id.orderid);
        username=(TextView)findViewById(R.id.username);
        careworkername=(TextView)findViewById(R.id.careworkername);
        place=(TextView)findViewById(R.id.place);
        wage=(TextView)findViewById(R.id.wage);
        time=(TextView)findViewById(R.id.time);
        textdescribe=(TextView)findViewById(R.id.textdescribe);
        finish=(Button)findViewById(R.id.finish);
        finish.setOnClickListener(this);

    }

    @Override
    public void onClick(View v) {

    }
}
